package FirstExampe.last;

public class ChildMovie extends AMovie {

	public ChildMovie(String _title) {
		super(_title);
	}

	@Override
	public double amount(int daysRented) {
		double thisAmount = 2;
		if (daysRented > 2) {
			thisAmount += (daysRented - 2) * 1.5;
		}
		return thisAmount;
	}

	@Override
	public int frequent(int daysRented) {
		return 1;
	}
}
